<%--
  Created by IntelliJ IDEA.
  User: 78168
  Date: 2021/5/21
  Time: 18:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

    <div id="div1">
        <h1>hello</h1>
        <a href="javascript:" @click="find()">查询数据</a>
    </div>


</body>
<script src="js/vue.js"></script>
<script src="js/axios-0.18.0.js"></script>
<script>
    new Vue({
        el:"#div1",
        data:{},
        methods:{
            find:function(){
               axios.get("/studentServlet").then(resp => {

                   alert(resp.data);
               });
            }
        }
    });

</script>
</html>
